-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue-139: Add Music #140
Issue-139: Add Music #140
Conversation
…aying music when starting a new game
…h floor we're on, stop music when we leave game loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issue with the code as is, but I noticed some issues when playing the game:
- There is no sound if I start with something else than a mob fight (in the case I tested, with a dialogue at the start, no music is playing)
- The sound is game is not the same balance as the sound of the original music, it sounds like the music is played stronger on the left than the right ear (mostly noticeable for the area 1 music, but it's present on all musics)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem anymore, apart from the fact I hear the music louder in my left ear than my right ear still.
I think this might be the reason : https://forum.godotengine.org/t/why-is-audio-only-played-from-the-left-earphone/21639
Basically, the 2D audio stream plays sounds relative to the camera, meaning that if we want it to be the same on both ears, we need to instantiate the AudioManager at the center of the screen.
I have two ideas for that:
- either see if you can move the 2D audio stream with code from the AudioManager
- if that's not possible, then create an instance of the AudioManager (ie a scene with the script of the AudioManager) and move it from there
I think the first solution would be better, as it's less heavy
# Conflicts: # #Scenes/SceneScripts/ShopScene.gd # Global/Global_Enums.gd # project.godot
Description
Add music and SFX to game
Related issue(s)
#139
List of changes
Added the following tracks
Other changes:
Tests
N/A
Additional notes
N/A